import numpy as np
from numpy import pi
a = np.arange(15).reshape(3,5)

print(a,a.shape,a.ndim,a.dtype.name,a.itemsize,a.size,a.dtype.itemsize,type(a))
b = np.array([2,3,4])
print(b,b.dtype)

c = np.array([(2,3,4,5),(6,6,7,8)])
print(c)

zero_arr = np.zeros((3,4),dtype=float)
ones_arr = np.ones((3,3))
ones_arr_much = np.ones((2,3,4),dtype=np.int16)
empty_arr = np.empty((2,3))

print(zero_arr,'\n',ones_arr,'\n',ones_arr_much,'\n',empty_arr)

range_arr = np.arange(0,10,2)
space_arr = np.linspace(0,10,9)
x = np.linspace(0,2*pi,4)
y = np.sin(x)
print(range_arr,'\n',space_arr,'\n',y)